import { Dict, DictType } from '@/model/common';

export default {
    isAuthenticated: (state: any) => {
        return state.token && state.token.length > 0;
    },
    dict: (state: any) => (type: DictType) => {
        const storeDicts: Map<DictType, Dict[]> = state.dict;
        return storeDicts.get(type);
    },
};
